package br.inf.solutions.apresentacoes.ssp.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

import br.com.vexillum.model.annotations.ValidatorClass;
import br.inf.solutions.apresentacoes.ssp.model.basics.BasicCommon;

@SuppressWarnings("serial")
@Entity
@ValidatorClass(validatorClass="br.inf.solutions.apresentacoes.ssp.control.validator.CircleHierarchicalValidator")
public class CircleHierarchical extends BasicCommon {
 
	
	@OneToMany(fetch = FetchType.LAZY, mappedBy = "circleHierarchical",targetEntity=PostGraduation.class)
	@Cascade(value = {CascadeType.MERGE})
	private List<PostGraduation> postGraduations;

	public List<PostGraduation> getPostGraduations() {
		return postGraduations;
	}

	public void setPostGraduations(List<PostGraduation> postGraduations) {
		this.postGraduations = postGraduations;
	}
	 
}
 
